<h1>Roulette</h1>User: <b>kenepps9</b> <hr/><h2>My Pile</h2>
  <table>
  <tr><td></td></tr>
  
<tr valign = 'top'><td>Top up?</td><td><table>
                 <tr><td><input name='certificate' type='file'/></td></tr>
                 <tr><td>or:</td></tr>
                 <tr><td><textarea name='certificateText' cols='20' rows='2'></textarea></td></tr>
                 <tr><td><input type='submit' value='Submit'/></td></tr>

                </table>
</td>
<td><i>Tokens must contain <br/>a certificate signing <br/>tokens to the dealer.<br/> Update certificates on<br/> registrar to make <br/>sure the dealer <br/>now owns them.</i></td>
</tr>
<tr><form method='post' action='/roulette/bank'	><td>Cash out?</td>
          <td><input type='int' name='value'/></td>
<td><form action="">
<select name="TokenType">
<option value="volvo">Chet Token</option>
<option value="saab">Ken Token</option>
<option value="fiat">Tim Token</option>
</select>
</form></td>
          <td><input type='submit' value='Enter'/></td>
          <td><input type='hidden' name='action' value='remove'/></td></form></tr>

          <tr><td>

<tr valign = 'top'><td>Cash out request?</td><td><table>
                 <tr><td><input name='certificate' type='file'/></td></tr>
                 <tr><td>or:</td></tr>
                 <tr><td><textarea name='certificateText' cols='20' rows='2'></textarea></td></tr>
                 <tr><td><input type='submit' value='Submit'/></td></tr>

                </table>
</td>
<td>The certificate <br/> signing request <br/>for payouts<br/> needs to be <br/>uploaded one <br/>time only.</td>
</tr></table>
          <h3>Transactions</h3>

  <table border='1'>
  <tr><th>Date</th><th>Value</th><th>Transaction</th><th>Token Type</th><th>Detail</t></tr>
  <tr><td>2010-10-17 04:19:42.719271</td><td align='right'>10</td><td>Top up</td><td>Tim Token</td><td>
                        <a href='/roulette/detail?id=agxkcHMtcm91bGV0dGVyEwsSC1RyYW5zYWN0aW9uGLHqAQw'>detail</a></td></tr><tr><td>2010-10-17 04:33:48.774356</td><td align='right'>-5</td><td>Cash out</td><td>Tim Token</td><td>

                        <a href='/roulette/detail?id=agxkcHMtcm91bGV0dGVyEwsSC1RyYW5zYWN0aW9uGJnyAQw'>detail</a></td></tr><tr><td>2010-10-17 04:52:02.963362</td><td align='right'>20</td><td>Top up</td><td>Ken Token</td><td>
                        <a href='/roulette/detail?id=agxkcHMtcm91bGV0dGVyEwsSC1RyYW5zYWN0aW9uGIH6AQw'>detail</a></td></tr>
<tr><td>2010-10-17 04:52:02.963362</td><td align='right'>20</td><td>Top up</td><td>Chet Token</td><td>
                        <a href='/roulette/detail?id=agxkcHMtcm91bGV0dGVyEwsSC1RyYW5zYWN0aW9uGIH6AQw'>detail</a></td></tr>

  </table>

<h3>Balance</h3>

  <table border='1'>
  <tr><th>Value</th><th>Token Type</th></tr>
  <tr><td align='right'>5</td><td>Tim Token</td></tr><tr><td align='right'>20</td><td>Chet Token Token</td></tr><tr><td align='right'>20</td><td>Ken Token</td></tr>

  </table>
<i>This could be made simpler by removing the cash out logic and paying out on every win. If we don't pay out on every win we need to track the total balance accross all accounts and compare it againsty our stock. We also have to manage whether we have the right denominations of certificates to pay out.</i>
<hr/>
            <table>
              <tr>
                <td><a href='/roulette/'>Home</a></td>
                <td><a href='/roulette/prePlay'>Play</a></td>
                <td><a href='/roulette/preBank'>Bank</a></td>
                <!--<td><a href='http://code.google.com/p/dps-x509/wiki/RegistrarPrototypeDescription'>About</a></td>-->

                <td><a href='https://appengine.google.com/dashboard?app_id=dps-roulette'>Admin</a></td>
              </tr>
            <table>